<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>React入门 - 初体验</title>
</head>
<body>
  <div id="container"></div>
  <script src="../../js/react.development.js"></script>
  <script src="../../js/react-dom.development.js"></script>
  <script src="../../js/babel.min.js"></script>
  <script type="text/babel">
    // 1. 获取页面的容器元素
    const container = document.getElementById('container');
    // 2. jsx创建虚拟dom对象
    const virtualDOM = <div>Hello, React!</div>;
    // 3. 将虚拟dom对象插入到页面容器
    ReactDOM.render(virtualDOM, container);
  </script>
</body>
</html>
